Keysight VISA.NET Help
ReadBinaryBlockOfUInt16(UInt16[],Int64,Int64,Boolean) Method



An array of unsigned 16-bit integers allocated by the calling program.
The index in the output data array where the first element is stored.
The maximum number of elements to store in the output data array.
If true and the method is reading an IEEE-488.2 block, it initially reads and discards characters until it finds the beginning of an IEEE-488.2 block. Otherwise it expects to find the block or array immediately.
Read an array of unsigned 16-bit integers from the formatted I/O read buffer and store a maximum of count elements into data starting at index.
Syntax
'Declaration
 
<CLSCompliantAttribute(False)>
Overloads Function ReadBinaryBlockOfUInt16( _
   ByVal data() As UShort, _
   ByVal index As Long, _
   ByVal count As Long, _
   ByVal seekToBlock As Boolean _
) As Long
'Usage
 
Dim instance As IMessageBasedFormattedIO
Dim data() As UShort
Dim index As Long
Dim count As Long
Dim seekToBlock As Boolean
Dim value As Long
 
value = instance.ReadBinaryBlockOfUInt16(data, index, count, seekToBlock)
[CLSCompliant(false)]
long ReadBinaryBlockOfUInt16( 
   ushort[] data,
   long index,
   long count,
   bool seekToBlock
)
[CLSCompliant(false)]
int64 ReadBinaryBlockOfUInt16( 
   array<ushort>^ data,
   int64 index,
   int64 count,
   bool seekToBlock
) 

Parameters

data
An array of unsigned 16-bit integers allocated by the calling program.
index
The index in the output data array where the first element is stored.
count
The maximum number of elements to store in the output data array.
seekToBlock
If true and the method is reading an IEEE-488.2 block, it initially reads and discards characters until it finds the beginning of an IEEE-488.2 block. Otherwise it expects to find the block or array immediately.

Return Value

The actual number of elements stored the output data array.
Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025